package Arrays101.Test;

import java.sql.SQLOutput;

/**
 * @author Alger
 * @date 2021/6/21  18:42
 */
public class Fanxing {
    public static void main(String[] args) {
        getInfo(1);
        getInfo("hhhh");
    }
    public static <T> void getInfo(T t){
        if (t instanceof Integer){
            System.out.println("整型"+t);
        }
        if (t instanceof String){
            System.out.println("字符串"+t);
        }
    }
}
